package org.jeecg.modules.device.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 设备明细表
 * @Author: jeecg-boot
 * @Date:   2025-04-22
 * @Version: V1.0
 */
@Data
@TableName("tb_equipment_details")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="tb_equipment_details对象", description="设备明细表")
public class TbEquipmentDetails implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**企业名称*/
	@Excel(name = "企业名称", width = 15)
    @ApiModelProperty(value = "企业名称")
    private String companyName;
    /**企业编码*/
    @Excel(name = "企业编码", width = 15)
    @ApiModelProperty(value = "企业编码")
    private String code;

	/**企业级次*/
	@Excel(name = "企业级次", width = 15)
    @ApiModelProperty(value = "企业级次")
    private String companyLevel;
    /**资产大类*/
    @Excel(name = "资产大类", width = 15)
    @ApiModelProperty(value = "资产大类")
    private String assetTypeLevel;
	/**资产类别*/
	@Excel(name = "资产类别", width = 15)
    @ApiModelProperty(value = "资产类别")
    private String assetType;
	/**资产名称*/
	@Excel(name = "资产名称", width = 15)
    @ApiModelProperty(value = "资产名称")
    private String assetName;
	/**使用状态*/
	@Excel(name = "使用状态", width = 15)
    @ApiModelProperty(value = "使用状态")
    private String useStatus;
	/**计量单位*/
	@Excel(name = "计量单位", width = 15)
    @ApiModelProperty(value = "计量单位")
    private String unit;
//	/**取得方式*/
//	@Excel(name = "取得方式", width = 15)
//    @ApiModelProperty(value = "取得方式")
//    private String getMethod;
	/**账面数原始值*/
	@Excel(name = "账面数原始值", width = 20, numFormat = "0.00")
    @ApiModelProperty(value = "账面数原始值")
    private BigDecimal bookOriginalValue;
	/**账面数净值*/
	@Excel(name = "账面数净值", width = 20, numFormat = "0.00")
    @ApiModelProperty(value = "账面数净值")
    private BigDecimal bookNetValue;
	/**账面数数量*/
	@Excel(name = "账面数数量", width = 20, numFormat = "0.00")
    @ApiModelProperty(value = "账面数数量")
    private BigDecimal bookQuantity;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;

    public TbEquipmentDetails () {

    }

    public TbEquipmentDetails(String companyName, String code, String companyLevel, String assetTypeLevel, String assetType, BigDecimal bookQuantity, BigDecimal bookNetValue, BigDecimal bookOriginalValue) {
        this.companyName = companyName;
        this.code = code;
        this.companyLevel = companyLevel;
        this.assetTypeLevel = assetTypeLevel;
        this.assetType = assetType;
        this.bookQuantity = bookQuantity;
        this.bookNetValue = bookNetValue;
        this.bookOriginalValue = bookOriginalValue;
    }


}
